/* ==================================================================   
 * Created [2009-4-27 下午11:32:55] by Jon.King 
 * ==================================================================  
 * TSS 
 * ================================================================== 
 * mailTo:jinpujun@hotmail.com
 * Copyright (c) Jon.King, 2009-2012 
 * ================================================================== 
 */

package com.jinhe.tss.core.common.progress;

/** 
 * <p> ProgressThreadGroup.java </p>
 * 进度条线程组，用于中止线程。
 * 
 */
public class ProgressThreadGroup extends ThreadGroup {
	private Progress progress;

	public ProgressThreadGroup(String name, Progress progress) {
		super(name);
		this.progress = progress;
	}

	public void uncaughtException(Thread t, Throwable e){
        super.uncaughtException(t, e);
		progress.setException(e);
		progress.setNormal(false); //设置为不正常
	}
}
